package com.nightsoul.dubbo.action;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.nightsoul.dubbo.provider.service.DemoService;

@Component
public class BarAction {
	@Reference()
	private DemoService demoService;
	
	public void action(String name) {
		System.out.println(demoService.sayHello(name));;
	}
}
